import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  depositoryName: [
    { required: true, message: "请输入仓库名称", trigger: "blur" }
  ],
  type: [{ required: true, message: "请选择仓库类型", trigger: "change" }],
  country: [{ required: true, message: "请选择国家省市区", trigger: "change" }],
  depositoryCode: [
    { required: true, message: "请输入仓库编码", trigger: "blur" }
  ],
  address: [{ required: true, message: "请输入详细地址", trigger: "blur" }]
});
